package com.zdya.combatdocuments.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;



/**
 * 授权表
 */
@Data
@TableName("authorization")
public class Authorization {
    @ApiModelProperty(value = "主键")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户姓名")
    private String name;

    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "mac地址")
    private String mac;

    @ApiModelProperty(value = "电话")
    private String tel;

    @ApiModelProperty(value = "要素")
    private String element;

    @ApiModelProperty(value = "席位")
    private String seat;

    @ApiModelProperty(value = "申请授权ip")
    private String ip;

    @ApiModelProperty(value = "授权者mac地址")
    private String authorMac;

    @TableField(exist = false)
    @ApiModelProperty(value = "授权者mac名称")
    private String authorName;

    private String address;

    private String keystore;

    @ApiModelProperty(value = "公钥")
    private String publicKey;

    @ApiModelProperty(value = "私钥")
    private String privateKey;

    @ApiModelProperty(value = "Cpu序列号")
    private String cpu;

    @TableField(exist = false)
    @ApiModelProperty(value = "授权者cpu序列号")
    private String authorCpu;

    @ApiModelProperty(value = "过期时间")
    private Long expirationTime;

    @ApiModelProperty(value = "授权状态:0-已授权;1-待授权")
    private Long authorizeStatus;

    @ApiModelProperty(value = "授权来源:0-授权方信息;1-申请方信息")
    private Long authorizeSource;

    @ApiModelProperty(value = "授权者Ip")
    private String primaryIp;



}
